package org.p2psimulator.entity.protocol.messages.gnutella.xrep;

import java.util.List;

import org.p2psimulator.entity.Message;
import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;

@SuppressWarnings ("unchecked")
public class XrepPoll  extends Message{


	public XrepPoll(Id origin, Id destination, int transactionId,
			BehaviorTypes originBehavior) {
		super(origin, destination, transactionId, originBehavior);
	}

	private Id resourceId;

	private List<Id> serventIds;

	public Id getResourceId() {
		return resourceId;
	}

	public void setResourceId(Id resourceId) {
		this.resourceId = resourceId;
	}

	public List<Id> getServentIds() {
		return serventIds;
	}

	public void setServentIds(List<Id> servent_ids) {
		this.serventIds = servent_ids;
	}


	public String getName(){
		return  MessageTypes.XREP_POLL.getName();
	}

	@Override
	public MessageTypes getMessageType() {
		return MessageTypes.XREP_POLL;
	}
}
